package com.google.code.carrossel.beans;

import java.awt.Color;

/**
 * @author F�bio C�sar
 *
 */
public enum ColorSet {
	//Disk 5 in mapped solution
	SET0 {
		Color[] getColorSet(){
			Color[] cSet = {Color.WHITE, Color.BLUE, Color.RED, Color.ORANGE, Color.YELLOW, Color.GREEN};
			return cSet;
		}
	},
	// Center in first mapped solution 
	SET1  {
		Color[] getColorSet(){
			Color[] cSet = {Color.RED, Color.ORANGE, Color.GREEN, Color.YELLOW, Color.WHITE, Color.BLUE};
			return cSet;
		}
	},
	//Disk 1 in mapped solution
	SET2  {
		Color[] getColorSet(){
			Color[] cSet = {Color.BLUE, Color.ORANGE, Color.WHITE, Color.GREEN, Color.RED, Color.YELLOW};
			return cSet;
		}
	},
	//Disk 4 in mapped solution
	SET3  {
		Color[] getColorSet(){
			Color[] cSet = {Color.RED, Color.ORANGE, Color.WHITE, Color.YELLOW, Color.BLUE, Color.GREEN};
			return cSet;
		}
	},
	//Disk 2 in mapped solution
	SET4  {
		Color[] getColorSet(){
			Color[] cSet = {Color.YELLOW, Color.RED, Color.ORANGE, Color.WHITE, Color.BLUE, Color.GREEN};
			return cSet;
		}
	},
	
	//Disk 3 in mapped solution
	SET5  {
		Color[] getColorSet(){
			Color[] cSet = {Color.GREEN, Color.BLUE, Color.WHITE, Color.RED, Color.YELLOW, Color.ORANGE};
			return cSet;
		}
	},
	//Disk 6 in mapped solution
	SET6  {
		Color[] getColorSet(){
			Color[] cSet = {Color.ORANGE, Color.RED, Color.GREEN, Color.BLUE, Color.YELLOW, Color.WHITE};
			return cSet;
		}
	};
	
	abstract Color[] getColorSet();
	public static ColorSet getColorByNumber(int number){
		switch (number) {
		case 0:
			return ColorSet.SET0;
		case 1:
			return ColorSet.SET1;
		case 2:
			return ColorSet.SET2;
		case 3:
			return ColorSet.SET3;
		case 4:
			return ColorSet.SET4;
		case 5:
			return ColorSet.SET5;
		case 6:
			return ColorSet.SET6;
		default:
			return null;
		}
	}
}
